package com.example.ai.repository;

import com.example.ai.model.CommunityShare;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface CommunityShareRepository extends JpaRepository<CommunityShare, Long> {
    Page<CommunityShare> findAllByOrderByCreatedAtDesc(Pageable pageable);
    boolean existsByWrongQuestionId(Long wrongQuestionId);
} 